<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.ViewPracticaTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputText value="#{bundle.ViewPracticaLabel_idpractica}"/>
                    <h:outputText value="#{practicaController.selected.idpractica}" title="#{bundle.ViewPracticaTitle_idpractica}"/>
                    <h:outputText value="#{bundle.ViewPracticaLabel_nombre}"/>
                    <h:outputText value="#{practicaController.selected.nombre}" title="#{bundle.ViewPracticaTitle_nombre}"/>
                    <h:outputText value="#{bundle.ViewPracticaLabel_descripcion}"/>
                    <h:outputText value="#{practicaController.selected.descripcion}" title="#{bundle.ViewPracticaTitle_descripcion}"/>
                    <h:outputText value="#{bundle.ViewPracticaLabel_ruta}"/>
                    <h:outputText value="#{practicaController.selected.ruta}" title="#{bundle.ViewPracticaTitle_ruta}"/>
                    <h:outputText value="#{bundle.ViewPracticaLabel_fechainicio}"/>
                    <h:outputText value="#{practicaController.selected.fechainicio}" title="#{bundle.ViewPracticaTitle_fechainicio}">
                        <f:convertDateTime pattern="MM/dd/yyyy" />
                    </h:outputText>
                    <h:outputText value="#{bundle.ViewPracticaLabel_fechafin}"/>
                    <h:outputText value="#{practicaController.selected.fechafin}" title="#{bundle.ViewPracticaTitle_fechafin}">
                        <f:convertDateTime pattern="MM/dd/yyyy" />
                    </h:outputText>
                </h:panelGrid>
                <br />
                <h:commandLink action="#{practicaController.destroyAndView}" value="#{bundle.ViewPracticaDestroyLink}"/>
                <br />
                <br />
                <h:link outcome="Edit" value="#{bundle.ViewPracticaEditLink}"/>
                <br />
                <h:commandLink action="#{practicaController.prepareCreate}" value="#{bundle.ViewPracticaCreateLink}" />
                <br />
                <h:commandLink action="#{practicaController.prepareList}" value="#{bundle.ViewPracticaShowAllLink}"/>
                <br />
                <br />
                <h:link outcome="/index" value="#{bundle.ViewPracticaIndexLink}"/>

            </h:form>
        </ui:define>
    </ui:composition>

</html>
